package com.chen.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(description = "商品图片")
@TableName("item_image")
@Data
public class ItemImage {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("图片ID")
    private Long id;

    @ApiModelProperty("商品ID")
    private Long itemId;

    @ApiModelProperty("图片URL")
    private String imageUrl;

    @ApiModelProperty("图片排序")
    private Integer sortOrder;

    @ApiModelProperty("是否主图")
    private Integer isMain;

    @ApiModelProperty("创建时间")
    private Date created;

    @ApiModelProperty("更新时间")
    private Date updated;
}


